home *** CD-ROM | disk | FTP | other *** search
- Path: hobbes.cc.uga.edu!pollux!greear
- From: greear@pollux.cs.uga.edu (Ben Greear)
- Newsgroups: comp.lang.c++
- Subject: overloading ofstream constructor, help needed
- Date: 5 Apr 1996 23:02:38 GMT
- Organization: University of Georgia, Athens
- Message-ID: <4k48qe$o9v@hobbes.cc.uga.edu>
- NNTP-Posting-Host: pollux.cs.uga.edu
-
-
- I have a string class: String
-
- I would like to be able to get an ofstream type file stream like this:
-
- String buf("./my_log_file");
-
- ofstream my_ofstream(buf);
-
-
- I think this would entail overloading ofstream somehow, and undoubtedly
- some other c++ wizardry :)
-
-
- if anyone has an example, or advice, I would love to look at it!!
-
- Ben Greear | "The meek shall inherit the Earth,
- greear@pollux.cs.uga.edu | the rest of us are going to the Stars!!
- Junior at UGA --Bumper Sticker
-
-
-
-